<div class="container">
<form class="form form-ajax" method="post" action="{:request()->url()}"  autocomplete="off">
	<div class="tab">
		<div class="tab-title clear">
			<a href="#" class="on">基本设置</a>
			<a href="#">优化设置</a> 
		</div>
		<ul class="tab-body">
			<li class="on">
	<div class="form-item ">
		<label class="form-label"><span>*</span>名称：</label>
		<div class="form-input">
			<input type="text" class="input" name="name"  data-rule="required"  >
		</div>
	</div>

	<div class="form-item ">
		<label class="form-label">介绍：</label>
		<div class="form-input">
			<textarea name="intro" class="textarea"></textarea>
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">外链：</label>
		<div class="form-input">
			<input type="text" class="input" name="link"    >
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">模型：</label>
		<div class="form-input">
			{:html_select('mid','',$mode)}
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">导航展示：</label>
		<div class="form-input">
			{:html_select('nav_on','',dict_list(1))}
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">首页展示：</label>
		<div class="form-input">
			{:html_select('index_on','',dict_list(1))}
		</div>
	</div>
	<div class="form-item list-page-item" >
	 	<label class="form-label">列表样式：</label>
	 	<div class="form-input">
	 		{:html_select('list_style','',dict_list(4))}
	 	</div>
	 </div>
	 
	 <div class="form-item ">
	 	<label class="form-label">列表页模板：</label>
	 	<div class="form-input">
	 		{:html_select('temp_list','',temp_list('list'),'选择模板')}
	 	</div>
	 </div>
	 <div class="form-item list-page-item">
	 	<label class="form-label">内容页模板：</label>
	 	<div class="form-input">
	 		{:html_select('temp_read','',temp_list('read'),'选择模板')}
	 	</div>
	 </div>
	<div class="form-item ">
		<label class="form-label">位置：</label>
		<div class="form-input">
			<input type="text" class="input" name="sort" value="0"  data-rule="required"  >
		</div>
	</div>
	 </li>
	 		<li>
	 			<div class="form-item ">
	 				<label class="form-label">标题：</label>
	 				<div class="form-input">
	 					<input type="text" class="input" name="seo_title"   >
	 				</div>
	 			</div>
	 			<div class="form-item ">
	 				<label class="form-label">关键词：</label>
	 				<div class="form-input">
	 					<textarea name="seo_key" class="textarea"></textarea>
	 				</div>
	 			</div>
	 			<div class="form-item ">
	 				<label class="form-label">描述：</label>
	 				<div class="form-input">
	 					<textarea name="seo_desc" class="textarea"></textarea>
	 				</div>
	 			</div>
	 		</li>
		</ul>
	 </div>
	 	
		 
	 
	<div class="form-item">
		<div class="form-input">
			<button type="submit" class="btn" id="sub">提交</button>
		</div>
	</div>
</form>



 </div>
 
 <script>
 	 $(function(){
 		 $("#mid").change(function(){
 			 if($(this).val()=='1'){
 				$(".list-page-item").hide();
 			 }else{
 				 $(".list-page-item").show();
 			 }
 		 });
 		 $("#mid").change();
 	 })
 </script>